#include "integer_table.h"
#include <iostream>

const int table_data[] = {
    1, 0, 0, 0,
    5, 5, 5, 5,
    5, 5, 5, 5,
    5, 5, 5, 5,
};

int main(void)
{
    IntegerTable t (4, 4, &(table_data[0]));
    auto saddles = t.GetSaddles();
    if (saddles.empty())
    {
        std::cout << "No saddle found" << std::endl;
    }
    else
    {
        //  found saddles
        for (auto coor : saddles)
        {
            std::cout << "X: " << coor.x << " Y: " << coor.y << " val: " << t[coor] << std::endl;
        }
    }
    return 0;
}
